Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/Mips/micromips-andi.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 60c9769439b8 |
children |
comparison
equal
deleted
inserted
replaced
84:f3e34b893a5f | 95:afa8332a0e37 |
---|---|
5 @y = global i32 60929, align 4 | 5 @y = global i32 60929, align 4 |
6 @.str = private unnamed_addr constant [7 x i8] c"%08x \0A\00", align 1 | 6 @.str = private unnamed_addr constant [7 x i8] c"%08x \0A\00", align 1 |
7 | 7 |
8 define i32 @main() nounwind { | 8 define i32 @main() nounwind { |
9 entry: | 9 entry: |
10 %0 = load i32* @x, align 4 | 10 %0 = load i32, i32* @x, align 4 |
11 %and1 = and i32 %0, 4 | 11 %and1 = and i32 %0, 4 |
12 %call1 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds | 12 %call1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds |
13 ([7 x i8]* @.str, i32 0, i32 0), i32 %and1) | 13 ([7 x i8], [7 x i8]* @.str, i32 0, i32 0), i32 %and1) |
14 | 14 |
15 %1 = load i32* @y, align 4 | 15 %1 = load i32, i32* @y, align 4 |
16 %and2 = and i32 %1, 5 | 16 %and2 = and i32 %1, 5 |
17 %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds | 17 %call2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds |
18 ([7 x i8]* @.str, i32 0, i32 0), i32 %and2) | 18 ([7 x i8], [7 x i8]* @.str, i32 0, i32 0), i32 %and2) |
19 ret i32 0 | 19 ret i32 0 |
20 } | 20 } |
21 | 21 |
22 declare i32 @printf(i8*, ...) | 22 declare i32 @printf(i8*, ...) |
23 | 23 |