OLD | NEW |
(Empty) | |
| 1 ; RUN: pnacl-llc -mtriple=arm-unknown-nacl -filetype=obj %s -o - \ |
| 2 ; RUN: | llvm-objdump -r - | FileCheck %s -check-prefix=ARM |
| 3 |
| 4 ; Check that "add" works for negative values when used as a |
| 5 ; ConstantExpr in a global variable initializer. |
| 6 ; See: https://code.google.com/p/nativeclient/issues/detail?id=3548 |
| 7 |
| 8 |
| 9 ; @spacer and @var end up in the BSS section. |
| 10 ; @spacer is at offset 0. @var is at offset 4096 = 0x1000. |
| 11 |
| 12 @spacer = internal global [4096 x i8] zeroinitializer |
| 13 @var = internal global i32 zeroinitializer |
| 14 |
| 15 @negative_offset = internal global i32 add |
| 16 (i32 ptrtoint (i32* @var to i32), i32 -8) |
| 17 |
| 18 ; ARM: RELOCATION RECORDS |
| 19 ; ARM-NEXT: 0 R_ARM_ABS32 .bss |
OLD | NEW |