source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/regpair_hint_phys.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 757 bytes
Line 
1; RUN: llc -o - %s
2; ARM target used to fail an assertion if RegPair{Odd|Even} hint pointed to a
3; physreg.
4target datalayout = "e-m:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32"
5target triple = "thumbv7-apple-tvos8.3.0"
6
7declare i8* @llvm.frameaddress(i32) #1
8declare i8* @llvm.returnaddress(i32) #1
9
10@somevar = global [2 x i32] [i32 0, i32 0]
11
12define void @__ubsan_handle_shift_out_of_bounds() #0 {
13entry:
14  %0 = tail call i8* @llvm.frameaddress(i32 0)
15  %1 = ptrtoint i8* %0 to i32
16  %2 = tail call i8* @llvm.returnaddress(i32 0)
17  %3 = ptrtoint i8* %2 to i32
18  %val0 = insertvalue [2 x i32] [i32 undef, i32 undef], i32 %3, 0
19  %val1 = insertvalue [2 x i32] %val0, i32 %1, 1
20  store [2 x i32] %val1, [2 x i32]* @somevar, align 8
21  ret void
22}
Note: See TracBrowser for help on using the repository browser.