mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-03 02:31:26 +00:00
Tidy up some of these tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147245 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
acc068e873
commit
131f7d3544
@ -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…
x
Reference in New Issue
Block a user