mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
11c9c5b2e9
Allow the comparison of x86 registers in the evaluation of assembler directives. This generalizes and simplifies the extension from r334022 to catch another case found in the Linux kernel. Reviewers: rnk, void Reviewed By: rnk Subscribers: hiraditya, nickdesaulniers, llvm-commits Differential Revision: https://reviews.llvm.org/D50795 llvm-svn: 339895
21 lines
319 B
ArmAsm
21 lines
319 B
ArmAsm
// RUN: llvm-mc -triple x86_64-unknown-unknown %s -o - | FileCheck %s
|
|
|
|
// CHECK-NOT: .set var_xdata
|
|
var_xdata = %rcx
|
|
|
|
// CHECK: xorq %rcx, %rcx
|
|
xorq var_xdata, var_xdata
|
|
|
|
// CHECK: .data
|
|
// CHECK-NEXT: .byte 1
|
|
.data
|
|
.if var_xdata == %rax
|
|
.byte 0
|
|
.elseif var_xdata == %rcx
|
|
.byte 1
|
|
.else
|
|
.byte 2
|
|
.endif
|
|
|
|
|