|
1 | 1 | ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2 | 2 | ; RUN: llc < %s -mtriple=i686-apple-darwin | FileCheck %s --check-prefixes=X86
|
3 |
| -; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s --check-prefixes=X64,X64-BASE |
| 3 | +; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s --check-prefixes=X64,X64-NOTBM |
4 | 4 | ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+tbm | FileCheck %s --check-prefixes=X64,X64-TBM
|
5 |
| -; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+bmi2 | FileCheck %s --check-prefixes=X64,X64-BMI2 |
| 5 | +; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+bmi2 | FileCheck %s --check-prefixes=X64,X64-NOTBM |
6 | 6 | ; rdar://7329206
|
7 | 7 |
|
8 | 8 | define zeroext i16 @t1(i16 zeroext %x) nounwind readnone ssp {
|
@@ -281,27 +281,19 @@ define i16 @shift_and(i16 %a) {
|
281 | 281 | ; X86-NEXT: ## kill: def $ax killed $ax killed $eax
|
282 | 282 | ; X86-NEXT: retl
|
283 | 283 | ;
|
284 |
| -; X64-BASE-LABEL: shift_and: |
285 |
| -; X64-BASE: ## %bb.0: |
286 |
| -; X64-BASE-NEXT: movl %edi, %eax |
287 |
| -; X64-BASE-NEXT: shrl $10, %eax |
288 |
| -; X64-BASE-NEXT: andl $1, %eax |
289 |
| -; X64-BASE-NEXT: ## kill: def $ax killed $ax killed $eax |
290 |
| -; X64-BASE-NEXT: retq |
| 284 | +; X64-NOTBM-LABEL: shift_and: |
| 285 | +; X64-NOTBM: ## %bb.0: |
| 286 | +; X64-NOTBM-NEXT: movl %edi, %eax |
| 287 | +; X64-NOTBM-NEXT: shrl $10, %eax |
| 288 | +; X64-NOTBM-NEXT: andl $1, %eax |
| 289 | +; X64-NOTBM-NEXT: ## kill: def $ax killed $ax killed $eax |
| 290 | +; X64-NOTBM-NEXT: retq |
291 | 291 | ;
|
292 | 292 | ; X64-TBM-LABEL: shift_and:
|
293 | 293 | ; X64-TBM: ## %bb.0:
|
294 | 294 | ; X64-TBM-NEXT: bextrl $266, %edi, %eax ## imm = 0x10A
|
295 | 295 | ; X64-TBM-NEXT: ## kill: def $ax killed $ax killed $eax
|
296 | 296 | ; X64-TBM-NEXT: retq
|
297 |
| -; |
298 |
| -; X64-BMI2-LABEL: shift_and: |
299 |
| -; X64-BMI2: ## %bb.0: |
300 |
| -; X64-BMI2-NEXT: movl %edi, %eax |
301 |
| -; X64-BMI2-NEXT: shrl $10, %eax |
302 |
| -; X64-BMI2-NEXT: andl $1, %eax |
303 |
| -; X64-BMI2-NEXT: ## kill: def $ax killed $ax killed $eax |
304 |
| -; X64-BMI2-NEXT: retq |
305 | 297 | %and = and i16 %a, 1024
|
306 | 298 | %cmp = icmp ne i16 %and, 0
|
307 | 299 | %conv = zext i1 %cmp to i16
|
|
0 commit comments