brintos

brintos / llvm-project-archived public Read only

0
0
Text · 683 B · 5424732 Raw
20 lines · plain
1; REQUIRES: x862; RUN: llvm-as %s -o %t.bc3; RUN: not ld.lld -shared %t.bc -o /dev/null 2>&1 | FileCheck %s --check-prefix=REGULAR4 5;; For regular LTO, the original module name is lost.6; REGULAR: error: ld-temp.o <inline asm>:1:2: invalid instruction mnemonic 'invalid'7 8; RUN: opt -module-summary %s -o %t.bc9; RUN: not ld.lld -shared %t.bc -o /dev/null 2>&1 | FileCheck %s --check-prefix=THIN10 11; THIN: error: {{.*}}.bc <inline asm>:1:2: invalid instruction mnemonic 'invalid'12 13target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"14target triple = "x86_64-unknown-linux-gnu"15 16define void @foo() {17  call void asm "invalid", ""()18  ret void19}20