
This adds -no-opaque-pointers to clang tests whose output will change when opaque pointers are enabled by default. This is intended to be part of the migration approach described in https://discourse.llvm.org/t/enabling-opaque-pointers-by-default/61322/9. The patch has been produced by replacing %clang_cc1 with %clang_cc1 -no-opaque-pointers for tests that fail with opaque pointers enabled. Worth noting that this doesn't cover all tests, there's a remaining ~40 tests not using %clang_cc1 that will need a followup change. Differential Revision: https://reviews.llvm.org/D123115
32 lines
1010 B
C
32 lines
1010 B
C
// REQUIRES: mips-registered-target
|
|
// RUN: %clang_cc1 -no-opaque-pointers -triple mips-linux-gnu -emit-llvm -o - %s | FileCheck %s
|
|
|
|
int data;
|
|
|
|
void m () {
|
|
asm("lw $1, %0" :: "m"(data));
|
|
// CHECK: call void asm sideeffect "lw $$1, $0", "*m,~{$1}"(i32* elementtype(i32) @data)
|
|
}
|
|
|
|
void ZC () {
|
|
asm("ll $1, %0" :: "ZC"(data));
|
|
// CHECK: call void asm sideeffect "ll $$1, $0", "*^ZC,~{$1}"(i32* elementtype(i32) @data)
|
|
}
|
|
|
|
void R () {
|
|
asm("lw $1, %0" :: "R"(data));
|
|
// CHECK: call void asm sideeffect "lw $$1, $0", "*R,~{$1}"(i32* elementtype(i32) @data)
|
|
}
|
|
|
|
int additionalClobberedRegisters () {
|
|
int temp0;
|
|
asm volatile(
|
|
"mfhi %[temp0], $ac1 \n\t"
|
|
: [temp0]"=&r"(temp0)
|
|
:
|
|
: "memory", "t0", "t1", "$ac1hi", "$ac1lo", "$ac2hi", "$ac2lo", "$ac3hi", "$ac3lo"
|
|
);
|
|
return 0;
|
|
// CHECK: call i32 asm sideeffect "mfhi $0, $$ac1 \0A\09", "=&r,~{memory},~{$8},~{$9},~{$ac1hi},~{$ac1lo},~{$ac2hi},~{$ac2lo},~{$ac3hi},~{$ac3lo},~{$1}"
|
|
}
|