38 lines · plain
1; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -mips16-hard-float -mattr=+soft-float -relocation-model=static < %s | FileCheck %s -check-prefix=CHECK-STATIC162 3; ModuleID = 'simplebr.c'4target datalayout = "E-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-n32-S64"5target triple = "mips--linux-gnu"6 7@i = common global i32 0, align 48 9; Function Attrs: nounwind10define void @foo() #0 {11entry:12 %0 = load i32, ptr @i, align 413 %tobool = icmp ne i32 %0, 014 br i1 %tobool, label %if.then, label %if.else15 16if.then: ; preds = %entry17 call void @goo()18 br label %if.end19 20if.else: ; preds = %entry21 call void @hoo()22 br label %if.end23 24if.end: ; preds = %if.else, %if.then25 ret void26}27 28; CHECK-STATIC16: b $BB{{[0-9]+}}_{{[0-9]+}} # 16 bit inst29 30declare void @goo(...) #131 32declare void @hoo(...) #133 34attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "use-soft-float"="true" }35attributes #1 = { "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "use-soft-float"="true" }36 37 38