view test/CodeGen/AArch64/arm64-big-imm-offsets.ll @ 117:facf19d07cd9

check EHStack on EmitCall (CbC goto)
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 24 Aug 2016 20:10:41 +0900
parents 54457678186b
children 1172e4bd9c6f
line wrap: on
line source

; RUN: llc -march=arm64 < %s


; Make sure large offsets aren't mistaken for valid immediate offsets.
; <rdar://problem/13190511>
define void @f(i32* nocapture %p) {
entry:
  %a = ptrtoint i32* %p to i64
  %ao = add i64 %a, 25769803792
  %b = inttoptr i64 %ao to i32*
  store volatile i32 0, i32* %b, align 4
  store volatile i32 0, i32* %b, align 4
  ret void
}