1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[NFC][ARM] Modified test with update script

This commit is contained in:
Sam Parker 2020-02-07 13:31:45 +00:00
parent c00ad4cd9e
commit 4f221079c8

View File

@ -1,5 +1,6 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -filetype=obj -o /dev/null < %s ; RUN: llc -filetype=obj -o /dev/null < %s
; RUN: llc -filetype=asm < %s | FileCheck %s ; RUN: llc -filetype=asm %s -o - | FileCheck %s
; ModuleID = 'bugpoint-reduced-simplified.bc' ; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "bugpoint-output-39ed676.bc" source_filename = "bugpoint-output-39ed676.bc"
@ -10,6 +11,46 @@ target triple = "thumbv8m.base-arm-none-eabi"
@g_566 = external global i32**, align 4 @g_566 = external global i32**, align 4
define void @main() { define void @main() {
; CHECK-LABEL: main:
; CHECK: @ %bb.0: @ %entry
; CHECK-NEXT: movw r0, :lower16:g_566
; CHECK-NEXT: movt r0, :upper16:g_566
; CHECK-NEXT: ldr r0, [r0]
; CHECK-NEXT: movs r0, #0
; CHECK-NEXT: cmp r0, #0
; CHECK-NEXT: beq .LBB0_8
; CHECK-NEXT: @ %bb.1: @ %for.cond7.preheader.i.lr.ph.i.i
; CHECK-NEXT: bne .LBB0_8
; CHECK-NEXT: .LBB0_2: @ %for.cond14.preheader.us.i.i.i
; CHECK-NEXT: @ =>This Inner Loop Header: Depth=1
; CHECK-NEXT: cbnz r0, .LBB0_7
; CHECK-NEXT: @ %bb.3: @ %for.cond14.preheader.us.i.i.i
; CHECK-NEXT: @ in Loop: Header=BB0_2 Depth=1
; CHECK-NEXT: lsls r1, r0, #2
; CHECK-NEXT: adr r2, .LJTI0_0
; CHECK-NEXT: adds r1, r2, r1
; CHECK-NEXT: mov pc, r1
; CHECK-NEXT: @ %bb.4:
; CHECK-NEXT: .p2align 2
; CHECK-NEXT: .LJTI0_0:
; CHECK-NEXT: b.w .LBB0_5
; CHECK-NEXT: b.w .LBB0_7
; CHECK-NEXT: b.w .LBB0_6
; CHECK-NEXT: b.w .LBB0_8
; CHECK-NEXT: b.w .LBB0_7
; CHECK-NEXT: b.w .LBB0_7
; CHECK-NEXT: b.w .LBB0_7
; CHECK-NEXT: b.w .LBB0_7
; CHECK-NEXT: b.w .LBB0_7
; CHECK-NEXT: b.w .LBB0_7
; CHECK-NEXT: b.w .LBB0_7
; CHECK-NEXT: b.w .LBB0_5
; CHECK-NEXT: .LBB0_5: @ %for.cond14.preheader.us.i.i.i
; CHECK-NEXT: @ in Loop: Header=BB0_2 Depth=1
; CHECK-NEXT: b .LBB0_2
; CHECK-NEXT: .LBB0_6: @ %lbl_1394.i.i.i.loopexit
; CHECK-NEXT: .LBB0_7: @ %func_1.exit.loopexit
; CHECK-NEXT: .LBB0_8: @ %for.end476.i.i.i.loopexit
entry: entry:
%0 = load volatile i32**, i32*** @g_566, align 4 %0 = load volatile i32**, i32*** @g_566, align 4
br label %func_16.exit.i.i.i br label %func_16.exit.i.i.i
@ -30,8 +71,6 @@ for.cond7.preheader.i.us.i.i: ; preds = %for.cond7.preheader
unreachable unreachable
for.cond14.preheader.us.i.i.i: ; preds = %for.inc459.us.i.i.i, %for.cond7.preheader.i.i.preheader.i for.cond14.preheader.us.i.i.i: ; preds = %for.inc459.us.i.i.i, %for.cond7.preheader.i.i.preheader.i
; CHECK: @ %bb.4
; CHECK-NEXT: .p2align 2
switch i4 undef, label %func_1.exit.loopexit [ switch i4 undef, label %func_1.exit.loopexit [
i4 0, label %for.inc459.us.i.i.i i4 0, label %for.inc459.us.i.i.i
i4 -5, label %for.inc459.us.i.i.i i4 -5, label %for.inc459.us.i.i.i