[PATCH] D119301: [AArch64][ARM] add -Wunaligned-access only for clang
Yuanfang Chen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 9 14:45:10 PST 2022
ychen updated this revision to Diff 407308.
ychen added a comment.
- add ARM64 tests
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119301/new/
https://reviews.llvm.org/D119301
Files:
clang/test/Sema/test-wunaligned-access.c
clang/test/Sema/test-wunaligned-access.cpp
Index: clang/test/Sema/test-wunaligned-access.cpp
===================================================================
--- clang/test/Sema/test-wunaligned-access.cpp
+++ clang/test/Sema/test-wunaligned-access.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 %s -triple=armv7-none-none-eabi -verify -Wunaligned-access -S -emit-llvm -o %t
+// RUN: %clang_cc1 %s -triple=armv8-none-none-eabi -verify -Wunaligned-access -S -emit-llvm -o %t
// REQUIRES: arm-registered-target
//
// This test suite tests the warning triggered by the -Wunaligned-access option.
@@ -271,4 +272,4 @@
struct U21 s21;
struct U22 s22;
struct U23 s23;
-struct U24 s24;
\ No newline at end of file
+struct U24 s24;
Index: clang/test/Sema/test-wunaligned-access.c
===================================================================
--- clang/test/Sema/test-wunaligned-access.c
+++ clang/test/Sema/test-wunaligned-access.c
@@ -2,6 +2,7 @@
// RUN: rm -f %S/test-wunaligned-access.ll
// RUN: %clang_cc1 %s -triple=armv7-none-none-eabi -verify -Wunaligned-access -S -emit-llvm -o %t
+// RUN: %clang_cc1 %s -triple=armv8-none-none-eabi -verify -Wunaligned-access -S -emit-llvm -o %t
// REQUIRES: arm-registered-target
//
// This test suite tests the warning triggered by the -Wunaligned-access option.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119301.407308.patch
Type: text/x-patch
Size: 1269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220209/0627c798/attachment.bin>
More information about the cfe-commits
mailing list