mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
Ensure that the CFE always emits intrinsics in their unsigned version, not with signed operands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25390 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e63629071d
commit
478cc13bdb
9
test/CFrontend/2006-01-16-BitCountIntrinsicsUnsigned.c
Normal file
9
test/CFrontend/2006-01-16-BitCountIntrinsicsUnsigned.c
Normal file
@ -0,0 +1,9 @@
|
||||
// RUN: %llvmgcc -S %s -o - | grep 'llvm.ctlz.i32(uint' &&
|
||||
// RUN: %llvmgcc -S %s -o - | not grep 'llvm.ctlz.i32(int'
|
||||
|
||||
unsigned t2(unsigned X) {
|
||||
return __builtin_clz(X);
|
||||
}
|
||||
int t1(int X) {
|
||||
return __builtin_clz(X);
|
||||
}
|
Loading…
Reference in New Issue
Block a user