blob: 3bb2f48afdc5015996bb21c359013dec028663d1 [file] [log] [blame]
Rafael Espindola3c9cb4b2015-08-05 12:03:341// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %ta.o
2// RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %tb.o
Rui Ueyama60fe7fc2015-10-07 17:31:393// RUN: ld.lld2 -shared %tb.o -o %ti686.so
Rafael Espindola3c9cb4b2015-08-05 12:03:344// RUN: llvm-mc -filetype=obj -triple=arm-unknown-linux %s -o %tc.o
5
Rui Ueyama18907992015-10-08 20:57:296// RUN: not ld.lld2 %ta.o %tb.o -o %t 2>&1 | \
Rafael Espindola3c9cb4b2015-08-05 12:03:347// RUN: FileCheck --check-prefix=A-AND-B %s
Denis Protivensky1ef7b3f2015-10-07 09:13:038// A-AND-B: b.o is incompatible with {{.*}}a.o
Rafael Espindola3c9cb4b2015-08-05 12:03:349
Rui Ueyama18907992015-10-08 20:57:2910// RUN: not ld.lld2 %tb.o %tc.o -o %t 2>&1 | \
Rafael Espindola3c9cb4b2015-08-05 12:03:3411// RUN: FileCheck --check-prefix=B-AND-C %s
Denis Protivensky1ef7b3f2015-10-07 09:13:0312// B-AND-C: c.o is incompatible with {{.*}}b.o
Rafael Espindola3c9cb4b2015-08-05 12:03:3413
Rui Ueyama18907992015-10-08 20:57:2914// RUN: not ld.lld2 %ta.o %ti686.so -o %t 2>&1 | \
Rafael Espindolaf98d6d82015-09-03 20:03:5415// RUN: FileCheck --check-prefix=A-AND-SO %s
Denis Protivensky1ef7b3f2015-10-07 09:13:0316// A-AND-SO: i686.so is incompatible with {{.*}}a.o
Rafael Espindolaf98d6d82015-09-03 20:03:5417
Rui Ueyama18907992015-10-08 20:57:2918// RUN: not ld.lld2 %tc.o %ti686.so -o %t 2>&1 | \
Rafael Espindolaf98d6d82015-09-03 20:03:5419// RUN: FileCheck --check-prefix=C-AND-SO %s
Denis Protivensky1ef7b3f2015-10-07 09:13:0320// C-AND-SO: i686.so is incompatible with {{.*}}c.o
Rafael Espindolaf98d6d82015-09-03 20:03:5421
Rui Ueyama18907992015-10-08 20:57:2922// RUN: not ld.lld2 %ti686.so %tc.o -o %t 2>&1 | \
Rafael Espindolaf98d6d82015-09-03 20:03:5423// RUN: FileCheck --check-prefix=SO-AND-C %s
Denis Protivensky1ef7b3f2015-10-07 09:13:0324// SO-AND-C: c.o is incompatible with {{.*}}i686.so
25
Rui Ueyama18907992015-10-08 20:57:2926// RUN: not ld.lld2 -m elf64ppc %ta.o -o %t 2>&1 | \
Denis Protivensky1ef7b3f2015-10-07 09:13:0327// RUN: FileCheck --check-prefix=A-ONLY %s
Rui Ueyama3ce825e2015-10-09 21:07:2528// A-ONLY: a.o is incompatible with elf64ppc
Denis Protivensky1ef7b3f2015-10-07 09:13:0329
Rui Ueyama18907992015-10-08 20:57:2930// RUN: not ld.lld2 -m elf64ppc %tb.o -o %t 2>&1 | \
Denis Protivensky1ef7b3f2015-10-07 09:13:0331// RUN: FileCheck --check-prefix=B-ONLY %s
Rui Ueyama3ce825e2015-10-09 21:07:2532// B-ONLY: b.o is incompatible with elf64ppc
Denis Protivensky1ef7b3f2015-10-07 09:13:0333
Rui Ueyama18907992015-10-08 20:57:2934// RUN: not ld.lld2 -m elf64ppc %tc.o -o %t 2>&1 | \
Denis Protivensky1ef7b3f2015-10-07 09:13:0335// RUN: FileCheck --check-prefix=C-ONLY %s
Rui Ueyama3ce825e2015-10-09 21:07:2536// C-ONLY: c.o is incompatible with elf64ppc
Denis Protivensky1ef7b3f2015-10-07 09:13:0337
Rui Ueyama18907992015-10-08 20:57:2938// RUN: not ld.lld2 -m elf_i386 %tc.o %ti686.so -o %t 2>&1 | \
Denis Protivensky1ef7b3f2015-10-07 09:13:0339// RUN: FileCheck --check-prefix=C-AND-SO-I386 %s
Rui Ueyama3ce825e2015-10-09 21:07:2540// C-AND-SO-I386: c.o is incompatible with elf_i386
Denis Protivensky1ef7b3f2015-10-07 09:13:0341
Rui Ueyama18907992015-10-08 20:57:2942// RUN: not ld.lld2 -m elf_i386 %ti686.so %tc.o -o %t 2>&1 | \
Denis Protivensky1ef7b3f2015-10-07 09:13:0343// RUN: FileCheck --check-prefix=SO-AND-C-I386 %s
Rui Ueyama3ce825e2015-10-09 21:07:2544// SO-AND-C-I386: c.o is incompatible with elf_i386
Rafael Espindolaf98d6d82015-09-03 20:03:5445
Rafael Espindola3c9cb4b2015-08-05 12:03:3446// REQUIRES: x86,arm