Debian Codegraph @

gcc/testsuite/g++.target/loongarch/cmodel-extreme-mi-thunk-1.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-inline -march=loongarch64 -mabi=lp64d -O2 -mcmodel=extreme -fno-plt -mexplicit-relocs=always -mdirect-extern-access" } */
3
4 struct A {
5 virtual ~A();
6 };
7
8 struct B : virtual A {};
9 void var() { B(); }
10
11 /* { dg-final { scan-assembler "pcalau12i\t\[^\n\]*%pc_hi20\\(\\.LTHUNK0\\)\n\taddi\\.d\t\[^\n\]*%pc_lo12\\(\\\.LTHUNK0\\)\n\tlu32i\\.d\t\[^\n\]*%pc64_lo20\\(\\.LTHUNK0\\)\n\tlu52i\\.d\t\[^\n\]*%pc64_hi12\\(\\.LTHUNK0\\)" } } */