diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2016-12-02 17:58:26 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2016-12-02 17:58:26 +0000 |
| commit | a5dbdf342b2a827ed7b1fb85494d120874ee4fbb (patch) | |
| tree | a0a11e8b220bbb9e7c6e035e345c9ae556bf6f85 /llvm/test/CodeGen/X86/not-and-simplify.ll | |
| parent | bda814350a00cbc10bece812910220cf19e5192a (diff) | |
| download | bcm5719-llvm-a5dbdf342b2a827ed7b1fb85494d120874ee4fbb.tar.gz bcm5719-llvm-a5dbdf342b2a827ed7b1fb85494d120874ee4fbb.zip | |
[x86] add common check prefix to reduce duplication; NFC
llvm-svn: 288522
Diffstat (limited to 'llvm/test/CodeGen/X86/not-and-simplify.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/not-and-simplify.ll | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/llvm/test/CodeGen/X86/not-and-simplify.ll b/llvm/test/CodeGen/X86/not-and-simplify.ll index 534e035009b..3bee4472c14 100644 --- a/llvm/test/CodeGen/X86/not-and-simplify.ll +++ b/llvm/test/CodeGen/X86/not-and-simplify.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=-bmi | FileCheck %s --check-prefix=NO_BMI -; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+bmi | FileCheck %s --check-prefix=BMI +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=-bmi | FileCheck %s --check-prefix=ALL --check-prefix=NO_BMI +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+bmi | FileCheck %s --check-prefix=ALL --check-prefix=BMI ; Clear high bits via shift, set them with xor (not), then mask them off. @@ -29,21 +29,13 @@ define i32 @shrink_xor_constant1(i32 %x) { ; Clear low bits via shift, set them with xor (not), then mask them off. define i8 @shrink_xor_constant2(i8 %x) { -; NO_BMI-LABEL: shrink_xor_constant2: -; NO_BMI: # BB#0: -; NO_BMI-NEXT: shlb $5, %dil -; NO_BMI-NEXT: notb %dil -; NO_BMI-NEXT: andb $-32, %dil -; NO_BMI-NEXT: movl %edi, %eax -; NO_BMI-NEXT: retq -; -; BMI-LABEL: shrink_xor_constant2: -; BMI: # BB#0: -; BMI-NEXT: shlb $5, %dil -; BMI-NEXT: notb %dil -; BMI-NEXT: andb $-32, %dil -; BMI-NEXT: movl %edi, %eax -; BMI-NEXT: retq +; ALL-LABEL: shrink_xor_constant2: +; ALL: # BB#0: +; ALL-NEXT: shlb $5, %dil +; ALL-NEXT: notb %dil +; ALL-NEXT: andb $-32, %dil +; ALL-NEXT: movl %edi, %eax +; ALL-NEXT: retq ; %sh = shl i8 %x, 5 %not = xor i8 %sh, -1 |

