brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 988664b Raw
50 lines · plain
1; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-apple-ios | FileCheck %s --check-prefix=ARM2; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-linux-gnueabi | FileCheck %s --check-prefix=ARM3; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-ios | FileCheck %s --check-prefix=THUMB4 5define i32 @t1(i32 %a, i32 %b) nounwind uwtable ssp {6entry:7; THUMB-LABEL: t1:8; ARM-LABEL: t1:9  %x = add i32 %a, %b  10  br i1 1, label %if.then, label %if.else11; THUMB-NOT: b {{\.?}}LBB0_112; ARM-NOT:  b {{\.?}}LBB0_113 14if.then:                                          ; preds = %entry15  call void @foo1()16  br label %if.end717 18if.else:                                          ; preds = %entry19  br i1 0, label %if.then2, label %if.else320; THUMB: b {{\.?}}LBB0_421; ARM:  b {{\.?}}LBB0_422 23if.then2:                                         ; preds = %if.else24  call void @foo2()25  br label %if.end626 27if.else3:                                         ; preds = %if.else28  %y = sub i32 %a, %b29  br i1 1, label %if.then5, label %if.end30; THUMB-NOT: b {{\.?}}LBB0_531; ARM-NOT:  b {{\.?}}LBB0_532 33if.then5:                                         ; preds = %if.else334  call void @foo1()35  br label %if.end36 37if.end:                                           ; preds = %if.then5, %if.else338  br label %if.end639 40if.end6:                                          ; preds = %if.end, %if.then241  br label %if.end742 43if.end7:                                          ; preds = %if.end6, %if.then44  ret i32 045}46 47declare void @foo1()48 49declare void @foo2()50