brintos

brintos / llvm-project-archived public Read only

0
0
Text · 474 B · 6371a85 Raw
11 lines · c
1// REQUIRES: x86-registered-target2// Check the constraint "*m" of operand arr and the definition of arr is not removed by FE3// RUN: %clang_cc1 %s -fasm-blocks -triple i386-apple-darwin10 -emit-llvm -o - | FileCheck %s4 5static int arr[10];6void t1(void) {7  // CHECK: @arr = internal global [10 x i32]8  // CHECK: call void asm sideeffect inteldialect "mov dword ptr $0[edx * $$4],edx", "=*m,{{.*}}(ptr elementtype([10 x i32]) @arr)9  __asm mov  dword ptr arr[edx*4],edx10}11