llvm-6502/test/MC/AsmParser/ifeqs.s
Saleem Abdulrasool e3d661f547 AsmParser: support .ifeqs directive
The .ifeqs directive assembles the following code if the quoted string
parameters are equal.  The strings must be quoted using double quotes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201998 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-23 23:02:18 +00:00

21 lines
243 B
ArmAsm

// RUN: llvm-mc -triple i386 %s | FileCheck %s
.ifeqs "alpha", "alpha"
.byte 1
.else
.byte 0
.endif
// CHECK-NOT: .byte 0
// CHECK: .byte 1
.ifeqs "alpha", "alpha "
.byte 0
.else
.byte 1
.endif
// CHECK-NOT: .byte 0
// CHECK: .byte 1