blob: 0eccc1972187c42e51c244d752cf984959aa2068 [file] [log] [blame]
Ulrich Weigand9e3577f2013-05-06 16:17:29 +00001; Test the FPR constraint "f".
2;
3; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
4
5define float @f1() {
Stephen Lind24ab202013-07-14 06:24:09 +00006; CHECK-LABEL: f1:
Ulrich Weigand9e3577f2013-05-06 16:17:29 +00007; CHECK: lzer %f1
8; CHECK: blah %f0 %f1
9; CHECK: br %r14
10 %val = call float asm "blah $0 $1", "=&f,f" (float 0.0)
11 ret float %val
12}
13
14define double @f2() {
Stephen Lind24ab202013-07-14 06:24:09 +000015; CHECK-LABEL: f2:
Ulrich Weigand9e3577f2013-05-06 16:17:29 +000016; CHECK: lzdr %f1
17; CHECK: blah %f0 %f1
18; CHECK: br %r14
19 %val = call double asm "blah $0 $1", "=&f,f" (double 0.0)
20 ret double %val
21}
22
23define double @f3() {
Stephen Lind24ab202013-07-14 06:24:09 +000024; CHECK-LABEL: f3:
Ulrich Weigand9e3577f2013-05-06 16:17:29 +000025; CHECK: lzxr %f1
26; CHECK: blah %f0 %f1
27; CHECK: br %r14
28 %val = call double asm "blah $0 $1", "=&f,f" (fp128 0xL00000000000000000000000000000000)
29 ret double %val
30}