1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/MC/AArch64/single-slash.s
Saleem Abdulrasool 9b9af49013 MC: AsmLexer: handle multi-character CommentStrings correctly
As X86MCAsmInfoDarwin uses '##' as CommentString although a single '#' starts a
comment a workaround for this special case is added.

Fixes divisions in constant expressions for the AArch64 assembler and other
targets which use '//' as CommentString.

Patch by Janne Grunau!

llvm-svn: 215615
2014-08-14 02:51:43 +00:00

7 lines
188 B
ArmAsm

// RUN: llvm-mc -triple aarch64-none-linux-gnu < %s | FileCheck %s
// Test that a single slash is not mistaken as the start of comment.
//CHECK: movz x0, #0x10
movz x0, #(32 / 2)