[clang] [llvm] [PowerPC] Update data layout aligment of i128 to 16 (PR #118004)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 28 07:06:26 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 5a3299a684d7d8c40f48d732e5b80a8bd29aa882 8a49c87d69e52406653bc6239c11f6099428a353 --extensions c,h,cpp -- clang/lib/Basic/Targets/OSTargets.h clang/lib/Basic/Targets/PPC.h clang/test/CodeGen/target-data.c llvm/lib/IR/AutoUpgrade.cpp llvm/lib/Target/PowerPC/PPCTargetMachine.cpp llvm/unittests/Bitcode/DataLayoutUpgradeTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/Bitcode/DataLayoutUpgradeTest.cpp b/llvm/unittests/Bitcode/DataLayoutUpgradeTest.cpp
index 7a74a58822..00bb963d39 100644
--- a/llvm/unittests/Bitcode/DataLayoutUpgradeTest.cpp
+++ b/llvm/unittests/Bitcode/DataLayoutUpgradeTest.cpp
@@ -95,12 +95,12 @@ TEST(DataLayoutUpgradeTest, ValidDataLayoutUpgrade) {
// Check that PowerPC64 targets add -i128:128.
EXPECT_EQ(UpgradeDataLayoutString("e-m:e-i64:64-n32:64", "powerpc64le-linux"),
"e-m:e-i64:64-i128:128-n32:64");
- EXPECT_EQ(UpgradeDataLayoutString(
- "E-m:e-Fn32-i64:64-n32:64", "powerpc64-linux"),
- "E-m:e-Fn32-i64:64-i128:128-n32:64");
- EXPECT_EQ(UpgradeDataLayoutString(
- "E-m:a-Fi64-i64:64-n32:64", "powerpc64-ibm-aix"),
- "E-m:a-Fi64-i64:64-i128:128-n32:64");
+ EXPECT_EQ(
+ UpgradeDataLayoutString("E-m:e-Fn32-i64:64-n32:64", "powerpc64-linux"),
+ "E-m:e-Fn32-i64:64-i128:128-n32:64");
+ EXPECT_EQ(
+ UpgradeDataLayoutString("E-m:a-Fi64-i64:64-n32:64", "powerpc64-ibm-aix"),
+ "E-m:a-Fi64-i64:64-i128:128-n32:64");
// Check that SPIR && SPIRV targets add -G1 if it's not present.
EXPECT_EQ(UpgradeDataLayoutString("e-p:32:32", "spir"), "e-p:32:32-G1");
``````````
</details>
https://github.com/llvm/llvm-project/pull/118004
More information about the cfe-commits
mailing list