diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-12-24 11:11:36 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-12-24 11:11:36 +0000 |
commit | 131f7d35442416943309af1d13bf4462467181a1 (patch) | |
tree | aa23c998fe7ac508a37e7ca0ab6a5dd21396503f /test/CodeGen | |
parent | acc068e873a1a2afa1edef20452722d97eec8f71 (diff) | |
download | external_llvm-131f7d35442416943309af1d13bf4462467181a1.zip external_llvm-131f7d35442416943309af1d13bf4462467181a1.tar.gz external_llvm-131f7d35442416943309af1d13bf4462467181a1.tar.bz2 |
Tidy up some of these tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147245 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/X86/bmi.ll | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/test/CodeGen/X86/bmi.ll b/test/CodeGen/X86/bmi.ll index cde9b48..261f24b 100644 --- a/test/CodeGen/X86/bmi.ll +++ b/test/CodeGen/X86/bmi.ll @@ -1,41 +1,38 @@ ; RUN: llc < %s -march=x86-64 -mattr=+bmi,+bmi2 | FileCheck %s -define i32 @t1(i32 %x) nounwind { - %tmp = tail call i32 @llvm.cttz.i32( i32 %x, i1 false ) - ret i32 %tmp +declare i8 @llvm.cttz.i8(i8, i1) nounwind readnone +declare i16 @llvm.cttz.i16(i16, i1) nounwind readnone +declare i32 @llvm.cttz.i32(i32, i1) nounwind readnone +declare i64 @llvm.cttz.i64(i64, i1) nounwind readnone + +define i8 @t1(i8 %x) nounwind { + %tmp = tail call i8 @llvm.cttz.i8( i8 %x, i1 false ) + ret i8 %tmp ; CHECK: t1: -; CHECK: tzcntl +; CHECK: tzcntw } -declare i32 @llvm.cttz.i32(i32, i1) nounwind readnone - define i16 @t2(i16 %x) nounwind { - %tmp = tail call i16 @llvm.cttz.i16( i16 %x, i1 false ) - ret i16 %tmp + %tmp = tail call i16 @llvm.cttz.i16( i16 %x, i1 false ) + ret i16 %tmp ; CHECK: t2: ; CHECK: tzcntw } -declare i16 @llvm.cttz.i16(i16, i1) nounwind readnone - -define i64 @t3(i64 %x) nounwind { - %tmp = tail call i64 @llvm.cttz.i64( i64 %x, i1 false ) - ret i64 %tmp +define i32 @t3(i32 %x) nounwind { + %tmp = tail call i32 @llvm.cttz.i32( i32 %x, i1 false ) + ret i32 %tmp ; CHECK: t3: -; CHECK: tzcntq +; CHECK: tzcntl } -declare i64 @llvm.cttz.i64(i64, i1) nounwind readnone - -define i8 @t4(i8 %x) nounwind { - %tmp = tail call i8 @llvm.cttz.i8( i8 %x, i1 false ) - ret i8 %tmp +define i64 @t4(i64 %x) nounwind { + %tmp = tail call i64 @llvm.cttz.i64( i64 %x, i1 false ) + ret i64 %tmp ; CHECK: t4: -; CHECK: tzcntw +; CHECK: tzcntq } -declare i8 @llvm.cttz.i8(i8, i1) nounwind readnone - define i32 @andn32(i32 %x, i32 %y) nounwind readnone { %tmp1 = xor i32 %x, -1 %tmp2 = and i32 %y, %tmp1 |