brintos

brintos / llvm-project-archived public Read only

0
0
Text · 590 B · 0fee3b2 Raw
14 lines · plain
1; RUN: llc < %s -mtriple=x86_64-apple-darwin -no-integrated-as | FileCheck %s2; This tests makes sure that we not mistake the bitcast inside the asm statement3; as an opaque constant. If we do, then the compilation will simply fail.4 5%struct2 = type <{ i32, i32, i32, i32 }>6%union.anon = type { [2 x i64], [4 x i32] }7%struct1 = type { i32, %union.anon }8 9define void @test() {10; CHECK: #ASM $1611  call void asm sideeffect "#ASM $0", "n"(i32 ptrtoint (ptr getelementptr inbounds (%struct2, ptr getelementptr inbounds (%struct1, ptr null, i32 0, i32 1), i32 0, i32 2) to i32))12  ret void13}14