ARM64: initial backend import
[oota-llvm.git] / test / MC / ARM64 / separator.s
1 ; RUN: llvm-mc -triple arm64-apple-darwin -show-encoding < %s | FileCheck %s
2
3 ; ARM64 uses a multi-character statment separator, "%%". Check that we lex
4 ; it properly and recognize the multiple assembly statements on the line.
5
6 ; To make sure the output assembly correctly handled the instructions,
7 ; tell it to show encodings. That will result in the two 'mov' instructions
8 ; being on separate lines in the output. We look for the "; encoding" string
9 ; to verify that. For this test, we don't care what the encoding is, just that
10 ; there is one for each 'mov' instruction.
11
12
13 _foo:
14 ; CHECK: foo
15 ; CHECK: mov x0, x1 ; encoding
16 ; CHECK: mov x1, x0 ; encoding
17         mov x0, x1 %% mov x1, x0
18         ret     lr
19
20