mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
Tidy up some of these tests.
llvm-svn: 147245
This commit is contained in:
parent
9ef50ef1f7
commit
1846086903
@ -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: tzcntl
|
||||
}
|
||||
|
||||
define i64 @t4(i64 %x) nounwind {
|
||||
%tmp = tail call i64 @llvm.cttz.i64( i64 %x, i1 false )
|
||||
ret i64 %tmp
|
||||
; CHECK: t4:
|
||||
; CHECK: tzcntq
|
||||
}
|
||||
|
||||
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
|
||||
; CHECK: t4:
|
||||
; CHECK: tzcntw
|
||||
}
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user