targettriple.ll 946 B

12345678910111213141516171819202122
  1. ; RUN: llvm-link %s %S/Inputs/targettriple-a.ll -S -o - 2>%t.a.err | FileCheck %s
  2. ; RUN: cat %t.a.err | FileCheck --check-prefix=WARN-A %s --allow-empty
  3. ; RUN: llvm-link %s %S/Inputs/targettriple-b.ll -S -o - 2>%t.b.err | FileCheck %s
  4. ; RUN: cat %t.b.err | FileCheck --check-prefix=WARN-B %s
  5. ; RUN: llvm-link %s %S/Inputs/targettriple-c.ll -S -o - 2>%t.c.err | FileCheck %s
  6. ; RUN: cat %t.c.err | FileCheck --check-prefix=WARN-C %s --allow-empty
  7. ; RUN: llvm-link -suppress-warnings %s %S/Inputs/targettriple-b.ll -S -o - 2>%t.no-warn.err | FileCheck %s
  8. ; RUN: cat %t.no-warn.err | FileCheck --check-prefix=WARN-A %s --allow-empty
  9. target triple = "x86_64-unknown-linux-gnu"
  10. ; CHECK: target triple = "x86_64-unknown-linux-gnu"
  11. ; WARN-A-NOT: WARNING
  12. ; i386 and x86_64 map to different ArchType enums.
  13. ; WARN-B: WARNING: Linking two modules of different target triples:
  14. ; x86_64h and x86_64 map to the same ArchType enum.
  15. ; WARN-C-NOT: WARNING