From 085a10c49e35f3c61234fee53ce7e69abc662441 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Mon, 28 Jul 2014 13:10:25 +0000 Subject: [PATCH] [PowerPC] Add testcase forgotten in the 214072 commit. llvm-svn: 214073 --- llvm/test/CodeGen/PowerPC/ppc64-elf-abi.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 llvm/test/CodeGen/PowerPC/ppc64-elf-abi.ll diff --git a/llvm/test/CodeGen/PowerPC/ppc64-elf-abi.ll b/llvm/test/CodeGen/PowerPC/ppc64-elf-abi.ll new file mode 100644 index 0000000..c7c9ff4 --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/ppc64-elf-abi.ll @@ -0,0 +1,10 @@ +; RUN: llc -march=ppc64 < %s | FileCheck %s -check-prefix=CHECK-ELFv1 +; RUN: llc -march=ppc64 -mattr=+elfv1 < %s | FileCheck %s -check-prefix=CHECK-ELFv1 +; RUN: llc -march=ppc64 -mattr=+elfv2 < %s | FileCheck %s -check-prefix=CHECK-ELFv2 +; RUN: llc -march=ppc64le < %s | FileCheck %s -check-prefix=CHECK-ELFv2 +; RUN: llc -march=ppc64le -mattr=+elfv1 < %s | FileCheck %s -check-prefix=CHECK-ELFv1 +; RUN: llc -march=ppc64le -mattr=+elfv2 < %s | FileCheck %s -check-prefix=CHECK-ELFv2 + +; CHECK-ELFv2: .abiversion 2 +; CHECK-ELFv1-NOT: .abiversion 2 + -- 2.7.4