2016-07-19 15:35:11 +02:00
|
|
|
; RUN: llc < %s -mtriple=arm64-eabi -verify-machineinstrs | FileCheck %s
|
2014-03-29 11:18:08 +01:00
|
|
|
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
|
2015-02-27 22:17:42 +01:00
|
|
|
%val = load i32, i32* %l
|
2014-03-29 11:18:08 +01:00
|
|
|
%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]+}},
|
|
|
|
ret fp128 %fpval
|
|
|
|
}
|