mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 23:42:52 +01:00
17 lines
514 B
LLVM
17 lines
514 B
LLVM
|
; RUN: llc -march=aarch64 -verify-machineinstrs < %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: 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]+}}, .LCPI
|
||
|
ret fp128 %fpval
|
||
|
}
|