18 lines · plain
1; RUN: llc -mtriple=aarch64-linux-gnu -verify-machineinstrs -o - %s | FileCheck %s2declare void @bar(ptr, ptr, ptr)3 4; SelectionDAG used to try to fold some fp128 operations using the ppc128 type,5; which is not supported.6 7define fp128 @test_folding() {8; CHECK-LABEL: test_folding:9 %l = alloca i3210 store i32 42, ptr %l11 %val = load i32, ptr %l12 %fpval = sitofp i32 %val to fp12813 ; If the value is loaded from a constant pool into an fp128, it's been folded14 ; successfully.15; CHECK: ldr {{q[0-9]+}}, [{{x[0-9]+}}, {{#?}}:lo12:.LCPI16 ret fp128 %fpval17}18