[PATCH] D80757: [PowerPC] Add clang option -m[no-]pcrel

Ahsan Saghir via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 28 14:21:00 PDT 2020


saghir accepted this revision.
saghir added a comment.
This revision is now accepted and ready to land.

Other than the nit, this looks good to me.



================
Comment at: clang/test/Driver/ppc-pcrel.cpp:1
+// RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -mcpu=pwr10 -mpcrel -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-PCREL %s
+// RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -mcpu=pwr10 -mno-pcrel -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOPCREL %s
----------------
nit: would the first two checks be better off in `clang/test/Driver/ppc-features.cpp`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80757/new/

https://reviews.llvm.org/D80757





More information about the cfe-commits mailing list