Jozef Kolek | c925808 | 2015-03-04 15:47:42 +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, i32* %b, align 4 |
| 12 | %1 = load i32, i32* %c, align 4 |
| 13 | %sub = sub nsw i32 %0, %1 |
| 14 | store i32 %sub, i32* %a, align 4 |
| 15 | ret i32 0 |
| 16 | } |
| 17 | |
| 18 | ; CHECK: subu16 |