1; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips \ 2; RUN: -relocation-model=pic -O3 < %s | FileCheck %s 3 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 8 9define i32 @main() nounwind { 10entry: 11 %0 = load i32, i32* @x, align 4 12 %addiu1 = add i32 %0, -7 13 %call1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds 14 ([7 x i8], [7 x i8]* @.str, i32 0, i32 0), i32 %addiu1) 15 16 %1 = load i32, i32* @y, align 4 17 %addiu2 = add i32 %1, 55 18 %call2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds 19 ([7 x i8], [7 x i8]* @.str, i32 0, i32 0), i32 %addiu2) 20 21 %2 = load i32, i32* @z, align 4 22 %addiu3 = add i32 %2, 24 23 %call3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds 24 ([7 x i8], [7 x i8]* @.str, i32 0, i32 0), i32 %addiu3) 25 ret i32 0 26} 27 28declare i32 @printf(i8*, ...) 29 30; CHECK: addius5 ${{[0-9]+}}, -7 31; CHECK: addiu ${{[0-9]+}}, ${{[0-9]+}}, 55 32; CHECK: addiur2 ${{[2-7]|16|17}}, ${{[2-7]|16|17}}, 24 33