Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/SystemZ/fp-move-12.ll @ 120:1172e4bd9c6f
update 4.0.0
author | mir3636 |
---|---|
date | Fri, 25 Nov 2016 19:14:25 +0900 |
parents | |
children | c2174574ed3a |
comparison
equal
deleted
inserted
replaced
101:34baf5011add | 120:1172e4bd9c6f |
---|---|
1 ; Test moves between FPRs on z13. | |
2 ; | |
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s | |
4 | |
5 ; Test that we use LDR instead of LER. | |
6 define float @f1(float %a, float %b) { | |
7 ; CHECK-LABEL: f1: | |
8 ; CHECK: ldr %f0, %f2 | |
9 ; CHECK: br %r14 | |
10 ret float %b | |
11 } | |
12 | |
13 ; Test f64 moves. | |
14 define double @f2(double %a, double %b) { | |
15 ; CHECK-LABEL: f2: | |
16 ; CHECK: ldr %f0, %f2 | |
17 ; CHECK: br %r14 | |
18 ret double %b | |
19 } | |
20 | |
21 ; Test f128 moves. Since f128s are passed by reference, we need to force | |
22 ; a copy by other means. | |
23 define void @f3(fp128 *%x) { | |
24 ; CHECK-LABEL: f3: | |
25 ; CHECK: lxr | |
26 ; CHECK: axbr | |
27 ; CHECK: br %r14 | |
28 %val = load volatile fp128 , fp128 *%x | |
29 %sum = fadd fp128 %val, %val | |
30 store volatile fp128 %sum, fp128 *%x | |
31 store volatile fp128 %val, fp128 *%x | |
32 ret void | |
33 } |