mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
b4ed01b89b
This matches other assemblers and is less unexpected (e.g. PR23227). On ELF, I tried binutils gas v2.24 and nasm 2.10.09, and they both agree on LShr. On COFF, I couldn't get my hands on an assembler yet, so don't change the behavior. For now, don't change it on non-AArch64 Darwin either, as the other assembler is gas v1.38, which does an AShr. llvm-svn: 235963
16 lines
217 B
ArmAsm
16 lines
217 B
ArmAsm
// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
|
|
|
|
// CHECK: .byte 1
|
|
.if [~0 >> 63] == 1
|
|
.byte 1
|
|
.else
|
|
.byte 2
|
|
.endif
|
|
|
|
// CHECK: .byte 3
|
|
.if 4 * [4 + (3 + [2 * 2] + 1)] == 48
|
|
.byte 3
|
|
.else
|
|
.byte 4
|
|
.endif
|