[NFC][Py Reformat] Reformat python files in llvm
[llvm-project.git] / llvm / test / CodeGen / Mips / simplebr.ll
blobba97bdd89c17994bd3cbb8a18480a324d54dc5e5
1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mips16-hard-float -mattr=+soft-float -relocation-model=static < %s | FileCheck %s -check-prefix=CHECK-STATIC16
3 ; ModuleID = 'simplebr.c'
4 target 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"
5 target triple = "mips--linux-gnu"
7 @i = common global i32 0, align 4
9 ; Function Attrs: nounwind
10 define void @foo() #0 {
11 entry:
12   %0 = load i32, ptr @i, align 4
13   %tobool = icmp ne i32 %0, 0
14   br i1 %tobool, label %if.then, label %if.else
16 if.then:                                          ; preds = %entry
17   call void @goo()
18   br label %if.end
20 if.else:                                          ; preds = %entry
21   call void @hoo()
22   br label %if.end
24 if.end:                                           ; preds = %if.else, %if.then
25   ret void
28 ; CHECK-STATIC16:       b       $BB{{[0-9]+}}_{{[0-9]+}} # 16 bit inst
30 declare void @goo(...) #1
32 declare void @hoo(...) #1
34 attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="true" }
35 attributes #1 = { "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="true" }