21 lines · plain
1; RUN: llvm-mc -triple arm64-apple-darwin -show-encoding < %s | FileCheck %s2 3; ARM64 uses a multi-character statement separator, "%%". Check that we lex4; 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' instructions8; being on separate lines in the output. We look for the "; encoding" string9; to verify that. For this test, we don't care what the encoding is, just that10; there is one for each 'mov' instruction.11 12 13_foo:14; CHECK: foo15; CHECK: mov x0, x1 ; encoding16; CHECK: mov x1, x0 ; encoding17 mov x0, x1 %% mov x1, x018 ret lr19 20 21