Pass AVX vectors which are arguments to varargs functions on the stack. <rdar://probl...
[oota-llvm.git] / test / CodeGen / X86 / rem.ll
1 ; RUN: llc < %s -march=x86 | not grep div
2
3 define i32 @test1(i32 %X) {
4         %tmp1 = srem i32 %X, 255                ; <i32> [#uses=1]
5         ret i32 %tmp1
6 }
7
8 define i32 @test2(i32 %X) {
9         %tmp1 = srem i32 %X, 256                ; <i32> [#uses=1]
10         ret i32 %tmp1
11 }
12
13 define i32 @test3(i32 %X) {
14         %tmp1 = urem i32 %X, 255                ; <i32> [#uses=1]
15         ret i32 %tmp1
16 }
17
18 define i32 @test4(i32 %X) {
19         %tmp1 = urem i32 %X, 256                ; <i32> [#uses=1]
20         ret i32 %tmp1
21 }
22