2 ; ARM target used to fail an assertion if RegPair{Odd|Even} hint pointed to a
4 target datalayout = "e-m:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32"
5 target triple = "thumbv7-apple-tvos8.3.0"
7 declare i8* @llvm.frameaddress(i32) #1
8 declare i8* @llvm.returnaddress(i32) #1
10 @somevar = global [2 x i32] [i32 0, i32 0]
12 define void @__ubsan_handle_shift_out_of_bounds() #0 {
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