brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 2003fd7 Raw
69 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc -relocation-model=static -mattr=+no-movt < %s | FileCheck %s --check-prefix=STATIC3; RUN: llc -relocation-model=pic -mattr=+no-movt < %s | FileCheck %s --check-prefix=PIC4 5target triple = "thumbv7a-linux-gnueabi"6 7define i32 @test1() #0 {8; STATIC-LABEL: test1:9; STATIC:       @ %bb.0:10; STATIC-NEXT:    push {r7, lr}11; STATIC-NEXT:    sub.w sp, sp, #103212; STATIC-NEXT:    ldr r0, .LCPI0_013; STATIC-NEXT:    ldr r0, [r0]14; STATIC-NEXT:    str.w r0, [sp, #1028]15; STATIC-NEXT:    add r0, sp, #416; STATIC-NEXT:    bl foo17; STATIC-NEXT:    ldr.w r0, [sp, #1028]18; STATIC-NEXT:    ldr r1, .LCPI0_019; STATIC-NEXT:    ldr r1, [r1]20; STATIC-NEXT:    cmp r1, r021; STATIC-NEXT:    ittt eq22; STATIC-NEXT:    moveq r0, #023; STATIC-NEXT:    addeq.w sp, sp, #103224; STATIC-NEXT:    popeq {r7, pc}25; STATIC-NEXT:  .LBB0_1:26; STATIC-NEXT:    bl __stack_chk_fail27; STATIC-NEXT:    .p2align 228; STATIC-NEXT:  @ %bb.2:29; STATIC-NEXT:  .LCPI0_0:30; STATIC-NEXT:    .long __stack_chk_guard31;32; PIC-LABEL: test1:33; PIC:       @ %bb.0:34; PIC-NEXT:    push {r7, lr}35; PIC-NEXT:    sub.w sp, sp, #103236; PIC-NEXT:    ldr r0, .LCPI0_037; PIC-NEXT:  .LPC0_0:38; PIC-NEXT:    add r0, pc39; PIC-NEXT:    ldr r0, [r0]40; PIC-NEXT:    str.w r0, [sp, #1028]41; PIC-NEXT:    add r0, sp, #442; PIC-NEXT:    bl foo43; PIC-NEXT:    ldr.w r0, [sp, #1028]44; PIC-NEXT:    ldr r1, .LCPI0_145; PIC-NEXT:  .LPC0_1:46; PIC-NEXT:    add r1, pc47; PIC-NEXT:    ldr r1, [r1]48; PIC-NEXT:    cmp r1, r049; PIC-NEXT:    ittt eq50; PIC-NEXT:    moveq r0, #051; PIC-NEXT:    addeq.w sp, sp, #103252; PIC-NEXT:    popeq {r7, pc}53; PIC-NEXT:  .LBB0_1:54; PIC-NEXT:    bl __stack_chk_fail55; PIC-NEXT:    .p2align 256; PIC-NEXT:  @ %bb.2:57; PIC-NEXT:  .LCPI0_0:58; PIC-NEXT:    .long __stack_chk_guard-(.LPC0_0+4)59; PIC-NEXT:  .LCPI0_1:60; PIC-NEXT:    .long __stack_chk_guard-(.LPC0_1+4)61  %a1 = alloca [256 x i32], align 462  call void @foo(ptr %a1) #363  ret i32 064}65 66declare void @foo(ptr)67 68attributes #0 = { nounwind sspstrong }69