projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Pointer arithmetic should be done with the index the same size as the pointer.
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
rem.ll
1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep div
2
3
int %test1(int %X) {
4
%tmp1 = rem int %X, 255
5
ret int %tmp1
6
}
7
8
int %test2(int %X) {
9
%tmp1 = rem int %X, 256
10
ret int %tmp1
11
}
12
13
uint %test3(uint %X) {
14
%tmp1 = rem uint %X, 255
15
ret uint %tmp1
16
}
17
18
uint %test4(uint %X) {
19
%tmp1 = rem uint %X, 256 ; just an and
20
ret uint %tmp1
21
}
22