1 ; RUN: llc -march=mipsel -force-mips-long-branch < %s | FileCheck %s -check-prefix=O32 2 ; RUN: llc -march=mips64el -mcpu=mips64 -mattr=n64 -force-mips-long-branch < %s | FileCheck %s -check-prefix=N64 3 4 @g0 = external global i32 5 6 define void @foo1(i32 %s) nounwind { 7 entry: 8 ; O32: bal 9 ; O32: lui $1, 0 10 ; O32: addiu $1, $1, {{[0-9]+}} 11 ; N64: lui $1, 0 12 ; N64: daddiu $1, $1, 0 13 ; N64: dsll $1, $1, 16 14 ; N64: daddiu $1, $1, 0 15 ; N64: bal 16 ; N64: dsll $1, $1, 16 17 ; N64: daddiu $1, $1, {{[0-9]+}} 18 19 %tobool = icmp eq i32 %s, 0 20 br i1 %tobool, label %if.end, label %if.then 21 22 if.then: ; preds = %entry 23 %0 = load i32* @g0, align 4 24 %add = add nsw i32 %0, 12 25 store i32 %add, i32* @g0, align 4 26 br label %if.end 27 28 if.end: ; preds = %entry, %if.then 29 ret void 30 } 31 32