1 ; RUN: llc -mtriple=arm64-apple-ios7.0 -verify-machineinstrs -o - %s | FileCheck %s
3 %struct = type { i32, i128, i8 }
5 @var = global %struct zeroinitializer
7 define i64 @check_size() {
8 ; CHECK-LABEL: check_size:
9 %starti = ptrtoint %struct* @var to i64
11 %endp = getelementptr %struct, %struct* @var, i64 1
12 %endi = ptrtoint %struct* %endp to i64
14 %diff = sub i64 %endi, %starti
19 define i64 @check_field() {
20 ; CHECK-LABEL: check_field:
21 %starti = ptrtoint %struct* @var to i64
23 %endp = getelementptr %struct, %struct* @var, i64 0, i32 1
24 %endi = ptrtoint i128* %endp to i64
26 %diff = sub i64 %endi, %starti