mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-23 04:52:54 +02:00
f6bd9143a7
No code changes for this bunch, just some test rejigs. llvm-svn: 206291
19 lines
645 B
LLVM
19 lines
645 B
LLVM
; RUN: llc -mtriple=aarch64-none-linux-gnu -verify-machineinstrs < %s | FileCheck %s
|
|
; RUN: llc -mtriple=arm64-linux-gnu -verify-machineinstrs -o - %s | FileCheck %s
|
|
declare void @bar(i8*, i8*, i32*)
|
|
|
|
; SelectionDAG used to try to fold some fp128 operations using the ppc128 type,
|
|
; which is not supported.
|
|
|
|
define fp128 @test_folding() {
|
|
; CHECK-LABEL: test_folding:
|
|
%l = alloca i32
|
|
store i32 42, i32* %l
|
|
%val = load i32* %l
|
|
%fpval = sitofp i32 %val to fp128
|
|
; If the value is loaded from a constant pool into an fp128, it's been folded
|
|
; successfully.
|
|
; CHECK: ldr {{q[0-9]+}}, [{{x[0-9]+}}, {{#?}}:lo12:.LCPI
|
|
ret fp128 %fpval
|
|
}
|