2017-06-24 06:52:36 +08:00
|
|
|
@ RUN: not llvm-mc %s -triple thumbv5-linux-gnueabi -filetype=obj -o /dev/null 2>&1 | FileCheck %s
|
2015-11-05 07:00:39 +08:00
|
|
|
|
2017-06-24 06:52:36 +08:00
|
|
|
.code 16
|
2015-11-05 07:00:39 +08:00
|
|
|
|
|
|
|
bl end
|
2017-06-24 06:52:36 +08:00
|
|
|
.space 0x1ffffff
|
2015-11-05 07:00:39 +08:00
|
|
|
end:
|
|
|
|
|
|
|
|
bl end2
|
2017-06-24 06:52:36 +08:00
|
|
|
.space 0x1ffffff
|
2015-11-05 07:00:39 +08:00
|
|
|
.global end2
|
|
|
|
end2:
|
|
|
|
|
|
|
|
bl end3
|
2017-06-24 06:52:36 +08:00
|
|
|
.space 0x2000000
|
2015-11-05 07:00:39 +08:00
|
|
|
.global end3
|
|
|
|
end3:
|
|
|
|
|
2017-06-24 06:52:36 +08:00
|
|
|
// CHECK-NOT: error
|
|
|
|
// CHECK: [[@LINE+1]]:{{[0-9]}}: error: Relocation out of range
|
2015-11-05 09:10:15 +08:00
|
|
|
bl end4
|
2017-06-24 06:52:36 +08:00
|
|
|
// CHECK-NOT: error
|
|
|
|
.space 0x2000000
|
2015-11-05 09:10:15 +08:00
|
|
|
end4:
|
|
|
|
|
2017-06-24 06:52:36 +08:00
|
|
|
start1:
|
|
|
|
.space 0x1fffffc
|
|
|
|
bl start1
|
|
|
|
|
|
|
|
.global start2
|
|
|
|
start2:
|
|
|
|
.space 0x1fffffc
|
|
|
|
bl start2
|
|
|
|
|
|
|
|
.global start3
|
|
|
|
start3:
|
|
|
|
.space 0x1fffffd
|
|
|
|
bl start3
|
|
|
|
|
|
|
|
start4:
|
|
|
|
.space 0x1fffffd
|
|
|
|
// CHECK: [[@LINE+1]]:{{[0-9]}}: error: Relocation out of range
|
|
|
|
bl start4
|