| Jozef Kolek | 5d171fc | 2015-02-19 11:51:32 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips \ |
| 2 | ; RUN: -relocation-model=pic -O3 < %s | FileCheck %s | ||||
| 3 | |||||
| 4 | define i32 @main() { | ||||
| 5 | entry: | ||||
| 6 | %retval = alloca i32, align 4 | ||||
| 7 | %a = alloca i32, align 4 | ||||
| 8 | %b = alloca i32, align 4 | ||||
| 9 | %c = alloca i32, align 4 | ||||
| 10 | store i32 0, i32* %retval | ||||
| 11 | %0 = load i32* %b, align 4 | ||||
| 12 | %1 = load i32* %c, align 4 | ||||
| 13 | %and = and i32 %0, %1 | ||||
| 14 | store i32 %and, i32* %a, align 4 | ||||
| 15 | ret i32 0 | ||||
| 16 | } | ||||
| 17 | |||||
| 18 | ; CHECK: and16 | ||||