xref: /aosp_15_r20/external/llvm/test/tools/gold/X86/disable-verify.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %s -o %t.o
2*9880d681SAndroid Build Coastguard Worker; REQUIRES: asserts
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
5*9880d681SAndroid Build Coastguard Worker; RUN:    --plugin-opt=disable-verify \
6*9880d681SAndroid Build Coastguard Worker; RUN:    --plugin-opt=-debug-pass=Arguments \
7*9880d681SAndroid Build Coastguard Worker; RUN:    -shared %t.o -o %t2.o 2>&1 | FileCheck %s
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
10*9880d681SAndroid Build Coastguard Worker; RUN:    --plugin-opt=-debug-pass=Arguments \
11*9880d681SAndroid Build Coastguard Worker; RUN:    -shared %t.o -o %t2.o 2>&1 | FileCheck %s -check-prefix=VERIFY
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-unknown-linux-gnu"
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Worker; -disable-verify should disable output verification from the optimization
16*9880d681SAndroid Build Coastguard Worker; pipeline.
17*9880d681SAndroid Build Coastguard Worker; CHECK: Pass Arguments: {{.*}} -verify -
18*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: -verify
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Worker; VERIFY: Pass Arguments: {{.*}} -verify {{.*}} -verify
21*9880d681SAndroid Build Coastguard Worker
22*9880d681SAndroid Build Coastguard Workerdefine void @f() {
23*9880d681SAndroid Build Coastguard Workerentry:
24*9880d681SAndroid Build Coastguard Worker  ret void
25*9880d681SAndroid Build Coastguard Worker}
26