1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-apple-darwin -no-integrated-as | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; This tests makes sure that we not mistake the bitcast inside the asm statement 3*9880d681SAndroid Build Coastguard Worker; as an opaque constant. If we do, then the compilation will simply fail. 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker%struct2 = type <{ i32, i32, i32, i32 }> 6*9880d681SAndroid Build Coastguard Worker%union.anon = type { [2 x i64], [4 x i32] } 7*9880d681SAndroid Build Coastguard Worker%struct1 = type { i32, %union.anon } 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Workerdefine void @test() { 10*9880d681SAndroid Build Coastguard Worker; CHECK: #ASM $16 11*9880d681SAndroid Build Coastguard Worker 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)) 12*9880d681SAndroid Build Coastguard Worker ret void 13*9880d681SAndroid Build Coastguard Worker} 14