1 ; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips -verify-machineinstrs \
2 ; RUN: -relocation-model=pic -O3 < %s | FileCheck %s
4 @x = global i32 65504, align 4
5 @y = global i32 60929, align 4
6 @z = global i32 60929, align 4
7 @.str = private unnamed_addr constant [7 x i8] c"%08x \0A\00", align 1
9 define i32 @main() nounwind {
11 %0 = load i32, ptr @x, align 4
12 %addiu1 = add i32 %0, -7
13 %call1 = call i32 (ptr, ...) @printf(ptr @.str, i32 %addiu1)
15 %1 = load i32, ptr @y, align 4
16 %addiu2 = add i32 %1, 55
17 %call2 = call i32 (ptr, ...) @printf(ptr @.str, i32 %addiu2)
19 %2 = load i32, ptr @z, align 4
20 %addiu3 = add i32 %2, 24
21 %call3 = call i32 (ptr, ...) @printf(ptr @.str, i32 %addiu3)
25 declare i32 @printf(ptr, ...)
27 ; CHECK: addius5 ${{[0-9]+}}, -7
28 ; CHECK: addiu ${{[0-9]+}}, ${{[0-9]+}}, 55
29 ; CHECK: addiur2 ${{[2-7]|16|17}}, ${{[2-7]|16|17}}, 24