Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 ; Simple test of the select instruction. The CHECK lines are only | 1 ; Simple test of the select instruction. The CHECK lines are only |
| 2 ; checking for basic instruction patterns that should be present | 2 ; checking for basic instruction patterns that should be present |
| 3 ; regardless of the optimization level, so there are no special OPTM1 | 3 ; regardless of the optimization level, so there are no special OPTM1 |
| 4 ; match lines. | 4 ; 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 -allow-externally-defined-symbols \ | 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 -allow-externally-defined-symbols \ | 10 ; RUN: --target x8632 -i %s --args -Om1 -allow-externally-defined-symbols \ |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 101 define internal i64 @testSelectImm64(i64 %a, i64 %b) { | 101 define internal i64 @testSelectImm64(i64 %a, i64 %b) { |
| 102 entry: | 102 entry: |
| 103 %cond = select i1 true, i64 %a, i64 %b | 103 %cond = select i1 true, i64 %a, i64 %b |
| 104 ret i64 %cond | 104 ret i64 %cond |
| 105 } | 105 } |
| 106 ; CHECK-LABEL: testSelectImm64 | 106 ; CHECK-LABEL: testSelectImm64 |
| 107 ; CHECK-NOT: cmp 0x{{[0-9a-f]+}}, | 107 ; CHECK-NOT: cmp 0x{{[0-9a-f]+}}, |
| 108 ; ARM32-LABEL: testSelectImm64 | 108 ; ARM32-LABEL: testSelectImm64 |
| 109 ; ARM32-NOT: cmp #{{.*}}, | 109 ; ARM32-NOT: cmp #{{.*}}, |
| 110 ; MIPS32-LABEL: testSelectImm64 | 110 ; MIPS32-LABEL: testSelectImm64 |
| 111 ; MIPS32: movn | |
| 112 ; MIPS32: movn | |
| 113 ; MIPS32: move | |
|
Jim Stichnoth
2016/09/24 14:39:59
I think you should probably remove these two 'move
obucinac
2016/09/25 17:19:42
Done.
| |
| 114 ; MIPS32: move | |
| OLD | NEW |