| OLD | NEW |
| 1 ; Assembly test for simple arithmetic operations. | 1 ; Assembly test for simple arithmetic operations. |
| 2 | 2 |
| 3 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ | 3 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ |
| 4 ; RUN: --target x8632 -i %s --args -O2 \ | 4 ; RUN: --target x8632 -i %s --args -O2 \ |
| 5 ; RUN: | %if --need=target_X8632 --command FileCheck %s | 5 ; RUN: | %if --need=target_X8632 --command FileCheck %s |
| 6 | 6 |
| 7 ; TODO(jvoung): Stop skipping unimplemented parts (via --skip-unimplemented) | 7 ; RUN: %if --need=target_ARM32 \ |
| 8 ; once enough infrastructure is in. Also, switch to --filetype=obj | 8 ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \ |
| 9 ; when possible. | 9 ; RUN: -i %s --args -O2 \ |
| 10 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | 10 ; RUN: | %if --need=target_ARM32 \ |
| 11 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ | |
| 12 ; RUN: -i %s --args -O2 --skip-unimplemented \ | |
| 13 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | |
| 14 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM-OPT2 %s | 11 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM-OPT2 %s |
| 15 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | 12 ; RUN: %if --need=target_ARM32 \ |
| 16 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ | 13 ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \ |
| 17 ; RUN: -i %s --args -O2 --mattr=hwdiv-arm --skip-unimplemented \ | 14 ; RUN: -i %s --args -O2 --mattr=hwdiv-arm \ |
| 18 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | 15 ; RUN: | %if --need=target_ARM32 \ |
| 19 ; RUN: --command FileCheck --check-prefix ARM32HWDIV %s | 16 ; RUN: --command FileCheck --check-prefix ARM32HWDIV %s |
| 20 ; RUN: %if --need=target_ARM32 --need=allow_dump \ | 17 ; RUN: %if --need=target_ARM32 \ |
| 21 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target arm32 \ | 18 ; RUN: --command %p2i --filetype=obj --disassemble --target arm32 \ |
| 22 ; RUN: -i %s --args -Om1 --skip-unimplemented \ | 19 ; RUN: -i %s --args -Om1 \ |
| 23 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ | 20 ; RUN: | %if --need=target_ARM32 \ |
| 24 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-OPTM1 %s | 21 ; RUN: --command FileCheck --check-prefix ARM32 --check-prefix ARM32-OPTM1 %s |
| 25 ; | 22 ; |
| 26 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 23 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
| 27 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target mips32\ | 24 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target mips32\ |
| 28 ; RUN: -i %s --args -O2 --skip-unimplemented \ | 25 ; RUN: -i %s --args -O2 --skip-unimplemented \ |
| 29 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ | 26 ; RUN: | %if --need=target_MIPS32 --need=allow_dump \ |
| 30 ; RUN: --command FileCheck --check-prefix MIPS32 %s | 27 ; RUN: --command FileCheck --check-prefix MIPS32 %s |
| 31 | 28 |
| 32 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ | 29 ; RUN: %if --need=target_MIPS32 --need=allow_dump \ |
| 33 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target mips32\ | 30 ; RUN: --command %p2i --filetype=asm --assemble --disassemble --target mips32\ |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 ; CHECK: shr {{.*}},cl | 286 ; CHECK: shr {{.*}},cl |
| 290 | 287 |
| 291 define internal i32 @AshrReloc(i32 %a) { | 288 define internal i32 @AshrReloc(i32 %a) { |
| 292 entry: | 289 entry: |
| 293 %opnd = ptrtoint [4 x i8]* @G to i32 | 290 %opnd = ptrtoint [4 x i8]* @G to i32 |
| 294 %result = ashr i32 %a, %opnd | 291 %result = ashr i32 %a, %opnd |
| 295 ret i32 %result | 292 ret i32 %result |
| 296 } | 293 } |
| 297 ; CHECK-LABEL: AshrReloc | 294 ; CHECK-LABEL: AshrReloc |
| 298 ; CHECK: sar {{.*}},cl | 295 ; CHECK: sar {{.*}},cl |
| OLD | NEW |