brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · fec3235 Raw
39 lines · plain
1; RUN: split-file %s %t2; RUN: cat %t/main.ll %t/a.ll > %t/a2.ll3; RUN: cat %t/main.ll %t/b.ll > %t/b2.ll4; RUN: llc %t/a2.ll -mtriple=armv7-unknown-linux-gnueabihf -mattr=+read-tp-tpidruro -o - | \5; RUN: FileCheck --check-prefixes=CHECK,CHECK-SMALL %s6; RUN: llc %t/a2.ll -mtriple=thumbv7-unknown-linux-gnueabihf -mattr=+read-tp-tpidruro -o - | \7; RUN: FileCheck --check-prefixes=CHECK,CHECK-SMALL %s8; RUN: llc %t/b2.ll -mtriple=armv7-unknown-linux-gnueabihf -mattr=+read-tp-tpidruro -o - | \9; RUN: FileCheck --check-prefixes=CHECK,CHECK-LARGE %s10; RUN: llc %t/b2.ll -mtriple=thumbv7-unknown-linux-gnueabihf -mattr=+read-tp-tpidruro -o - | \11; RUN: FileCheck --check-prefixes=CHECK,CHECK-LARGE %s12 13;--- main.ll14declare void @baz(ptr)15 16define void @foo(i64 %t) sspstrong {17  %vla = alloca i32, i64 %t, align 418  call void @baz(ptr nonnull %vla)19  ret void20}21!llvm.module.flags = !{!1, !2}22!1 = !{i32 2, !"stack-protector-guard", !"tls"}23 24;--- a.ll25!2 = !{i32 2, !"stack-protector-guard-offset", i32 1296}26 27;--- b.ll28!2 = !{i32 2, !"stack-protector-guard-offset", i32 4296}29 30; CHECK: mrc p15, #0, [[REG1:r[0-9]+]], c13, c0, #331; CHECK-SMALL-NEXT: ldr{{(\.w)?}} [[REG1]], [[[REG1]], #1296]32; CHECK-LARGE-NEXT: add{{(\.w)?}} [[REG1]], [[REG1]], #409633; CHECK-LARGE-NEXT: ldr{{(\.w)?}} [[REG1]], [[[REG1]], #200]34; CHECK: bl baz35; CHECK: mrc p15, #0, [[REG2:r[0-9]+]], c13, c0, #336; CHECK-SMALL-NEXT: ldr{{(\.w)?}} [[REG2]], [[[REG2]], #1296]37; CHECK-LARGE-NEXT: add{{(\.w)?}} [[REG2]], [[REG2]], #409638; CHECK-LARGE-NEXT: ldr{{(\.w)?}} [[REG2]], [[[REG2]], #200]39