2014-11-12 04:49:16 +08:00
|
|
|
; RUN: llc -show-mc-encoding < %s | FileCheck %s
|
2014-11-12 03:46:36 +08:00
|
|
|
|
|
|
|
; Test that the direct object emission selects the and variant with 8 bit
|
|
|
|
; immediate.
|
|
|
|
; We used to get this wrong when using direct object emission, but not when
|
|
|
|
; reading assembly.
|
|
|
|
|
2014-11-12 04:49:16 +08:00
|
|
|
; CHECK: andq $-32, %rsp # encoding: [0x48,0x83,0xe4,0xe0]
|
2014-11-12 03:46:36 +08:00
|
|
|
|
|
|
|
target triple = "x86_64-pc-linux"
|
|
|
|
|
|
|
|
define void @f() {
|
|
|
|
%foo = alloca i8, align 32
|
|
|
|
ret void
|
|
|
|
}
|