Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/SPARC/float.ll @ 120:1172e4bd9c6f
update 4.0.0
author | mir3636 |
---|---|
date | Fri, 25 Nov 2016 19:14:25 +0900 |
parents | afa8332a0e37 |
children |
comparison
equal
deleted
inserted
replaced
101:34baf5011add | 120:1172e4bd9c6f |
---|---|
1 ; RUN: llc -march=sparc < %s | FileCheck %s -check-prefix=V8 | 1 ; RUN: llc -march=sparc < %s | FileCheck %s -check-prefix=V8 -check-prefix=V8-BE |
2 ; RUN: llc -march=sparcel < %s | FileCheck %s -check-prefix=V8 -check-prefix=V8-EL | |
2 ; RUN: llc -march=sparc -O0 < %s | FileCheck %s -check-prefix=V8-UNOPT | 3 ; RUN: llc -march=sparc -O0 < %s | FileCheck %s -check-prefix=V8-UNOPT |
3 ; RUN: llc -march=sparc -mattr=v9 < %s | FileCheck %s -check-prefix=V9 | 4 ; RUN: llc -march=sparc -mattr=v9 < %s | FileCheck %s -check-prefix=V9 |
4 ; RUN: llc -mtriple=sparc64-unknown-linux < %s | FileCheck %s -check-prefix=SPARC64 | 5 ; RUN: llc -mtriple=sparc64-unknown-linux < %s | FileCheck %s -check-prefix=SPARC64 |
5 | 6 |
6 ; V8-LABEL: test_neg: | 7 ; V8-LABEL: test_neg: |
7 ; V8: call get_double | 8 ; V8: call get_double |
8 ; V8: fnegs %f0, %f0 | 9 ; V8-BE: fnegs %f0, %f0 |
10 ; V8-EL: fnegs %f1, %f1 | |
9 | 11 |
10 ; V8-UNOPT-LABEL: test_neg: | 12 ; V8-UNOPT-LABEL: test_neg: |
11 ; V8-UNOPT: fnegs | 13 ; V8-UNOPT: fnegs |
12 ; V8-UNOPT: ! implicit-def | 14 ; V8-UNOPT: ! implicit-def |
13 ; V8-UNOPT: fmovs {{.+}}, %f0 | 15 ; V8-UNOPT: fmovs {{.+}}, %f0 |
25 %1 = fsub double -0.000000e+00, %0 | 27 %1 = fsub double -0.000000e+00, %0 |
26 ret double %1 | 28 ret double %1 |
27 } | 29 } |
28 | 30 |
29 ; V8-LABEL: test_abs: | 31 ; V8-LABEL: test_abs: |
30 ; V8: fabss %f0, %f0 | 32 ; V8-BE: fabss %f0, %f0 |
33 ; V8-EL: fabss %f1, %f1 | |
31 | 34 |
32 ; V8-UNOPT-LABEL: test_abs: | 35 ; V8-UNOPT-LABEL: test_abs: |
33 ; V8-UNOPT: fabss | 36 ; V8-UNOPT: fabss |
34 ; V8-UNOPT: ! implicit-def | 37 ; V8-UNOPT: ! implicit-def |
35 ; V8-UNOPT: fmovs {{.+}}, %f0 | 38 ; V8-UNOPT: fmovs {{.+}}, %f0 |