| OLD | NEW |
| 1 ; This tries to be a comprehensive test of f32 and f64 call/return ops. | 1 ; This tries to be a comprehensive test of f32 and f64 call/return ops. |
| 2 ; The CHECK lines are only checking for basic instruction patterns | 2 ; The CHECK lines are only checking for basic instruction patterns |
| 3 ; that should be present regardless of the optimization level, so | 3 ; that should be present regardless of the optimization level, so |
| 4 ; there are no special OPTM1 match lines. | 4 ; there are no special OPTM1 match lines. |
| 5 | 5 |
| 6 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 6 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
| 7 ; RUN: --target x8632 -i %s --args -O2 \ | 7 ; RUN: --target x8632 -i %s --args -O2 -allow-externally-defined-symbols \ |
| 8 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 8 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
| 9 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 9 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
| 10 ; RUN: --target x8632 -i %s --args -Om1 \ | 10 ; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \ |
| 11 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 11 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
| 12 | 12 |
| 13 ; Can't test on ARM yet. Need to use several vpush {contiguous FP regs}, | 13 ; Can't test on ARM yet. Need to use several vpush {contiguous FP regs}, |
| 14 ; instead of push {any GPR list}. | 14 ; instead of push {any GPR list}. |
| 15 | 15 |
| 16 define internal i32 @doubleArgs(double %a, i32 %b, double %c) { | 16 define internal i32 @doubleArgs(double %a, i32 %b, double %c) { |
| 17 entry: | 17 entry: |
| 18 ret i32 %b | 18 ret i32 %b |
| 19 } | 19 } |
| 20 ; CHECK-LABEL: doubleArgs | 20 ; CHECK-LABEL: doubleArgs |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 } | 90 } |
| 91 ; CHECK-LABEL: returnFloatConst | 91 ; CHECK-LABEL: returnFloatConst |
| 92 ; CHECK: fld | 92 ; CHECK: fld |
| 93 | 93 |
| 94 define internal double @returnDoubleConst() { | 94 define internal double @returnDoubleConst() { |
| 95 entry: | 95 entry: |
| 96 ret double 1.230000e+00 | 96 ret double 1.230000e+00 |
| 97 } | 97 } |
| 98 ; CHECK-LABEL: returnDoubleConst | 98 ; CHECK-LABEL: returnDoubleConst |
| 99 ; CHECK: fld | 99 ; CHECK: fld |
| OLD | NEW |