You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
319 B
21 lines
319 B
// 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
|
|
|
|
|