xref: /llvm-project/llvm/test/CodeGen/AArch64/2s-complement-asm.ll (revision 5ddce70ef0e5a641d7fea95e31fc5e2439cb98cb)
1; RUN: llc -mtriple=arm64-apple-ios %s -filetype=obj -o - | llvm-objdump --macho --section __DATA,__data - | FileCheck %s
2
3; CHECK: Contents of (__DATA,__data) section
4; CHECK: 0000002a 59ed145d
5@other = global i32 42
6@var = global i32 sub(i32 646102975,
7                      i32 add (i32 trunc(i64 sub(i64 ptrtoint(ptr @var to i64),
8                                                         i64 ptrtoint(ptr @other to i64)) to i32),
9                               i32 3432360802))
10