1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/MC/AsmParser/ifeqs.s
Saleem Abdulrasool 72c71c83fc 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.

llvm-svn: 201998
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