[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / ARM / ldr-pseudo-obj-errors.s
bloba2884853cea340eb310416f8dace3da9864e98fe
1 @RUN: not llvm-mc -triple=armv7-unknown-linux-gnueabi -filetype=obj %s -o %t1 2> %t2
2 @RUN: cat %t2 | FileCheck %s
3 @RUN: not llvm-mc -triple=armv7-darwin-apple -filetype=obj %s -o %t1_darwin 2> %t2_darwin
4 @RUN: cat %t2_darwin | FileCheck %s
6 @These tests look for errors that should be reported for invalid object layout
7 @with the ldr pseudo. They are tested separately from parse errors because they
8 @only trigger when the file has successfully parsed and the object file is about
9 @to be written out.
11 .text
12 foo:
13 ldr r0, =0x12345678
14 .space 8000
15 @ CHECK: error: out of range pc-relative fixup value
16 @ CHECK: ldr r0, =0x12345678
17 @ CHECK: ^