You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.205
Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
This commit is contained in:
parent
5cd5df71cc
commit
8e12397d70
13
external/llvm/test/CodeGen/X86/opaque-constant-asm.ll
vendored
Normal file
13
external/llvm/test/CodeGen/X86/opaque-constant-asm.ll
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
; RUN: llc < %s -mtriple=x86_64-apple-darwin -no-integrated-as | FileCheck %s
|
||||
; This tests makes sure that we not mistake the bitcast inside the asm statement
|
||||
; as an opaque constant. If we do, then the compilation will simply fail.
|
||||
|
||||
%struct2 = type <{ i32, i32, i32, i32 }>
|
||||
%union.anon = type { [2 x i64], [4 x i32] }
|
||||
%struct1 = type { i32, %union.anon }
|
||||
|
||||
define void @test() {
|
||||
; CHECK: #ASM $16
|
||||
call void asm sideeffect "#ASM $0", "n"(i32 ptrtoint (i32* getelementptr inbounds (%struct2, %struct2* bitcast (%union.anon* getelementptr inbounds (%struct1, %struct1* null, i32 0, i32 1) to %struct2*), i32 0, i32 2) to i32))
|
||||
ret void
|
||||
}
|
Reference in New Issue
Block a user