Produce an error instead of a crash in an expr we cannot represent.
[oota-llvm.git] / test / MC / AArch64 / mapping-within-section.s
1 // RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj < %s | llvm-objdump -t - | FileCheck %s
2 // RUN: llvm-mc -triple=arm64-none-linux-gnu -filetype=obj < %s | llvm-objdump -t - | FileCheck %s
3
4     .text
5 // $x at 0x0000
6     add w0, w0, w0
7 // $d at 0x0004
8     .ascii "012"
9     .byte 1
10     .hword 2
11     .word 4
12     .xword 8
13     .single 4.0
14     .double 8.0
15     .space 10
16     .zero 3
17     .fill 10, 2, 42
18     .org 100, 12
19 // $x at 0x0018
20     add x0, x0, x0
21
22 // CHECK: 00000004         .text  00000000 $d
23 // CHECK-NEXT: 00000000         .text  00000000 $x
24 // CHECK-NEXT: 00000064         .text  00000000 $x