From 243af116aab8d0783c1c724e687df4ee70ac89df Mon Sep 17 00:00:00 2001 From: Gerrit User 1001629 <1001629@3ce6091f-6c88-37e8-8c75-72f92ae8dfba> Date: Wed, 6 Nov 2024 19:32:51 +0000 Subject: [PATCH] Update patch set 2 Patch Set 2: (1 comment) Patch-set: 2 --- 298bd480ba48b445d8c185b4a660be96256f4b4a | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/298bd480ba48b445d8c185b4a660be96256f4b4a b/298bd480ba48b445d8c185b4a660be96256f4b4a index ebf51a647..78f5ba9e5 100644 --- a/298bd480ba48b445d8c185b4a660be96256f4b4a +++ b/298bd480ba48b445d8c185b4a660be96256f4b4a @@ -190,6 +190,24 @@ "parentUuid": "5d490a85_1b62ac9a", "revId": "298bd480ba48b445d8c185b4a660be96256f4b4a", "serverId": "3ce6091f-6c88-37e8-8c75-72f92ae8dfba" + }, + { + "unresolved": true, + "key": { + "uuid": "89bd57ac_2a7a3a43", + "filename": "BUILD.gn", + "patchSetId": 2 + }, + "lineNbr": 259, + "author": { + "id": 1001629 + }, + "writtenOn": "2024-11-06T19:32:51Z", + "side": 1, + "message": "`__attribute__`. `__attribute__(target())` seems to do the trick with both compilers:\n\n```\n$ cat test.cc\n#include \u003carm_acle.h\u003e\n\n__attribute__((target(\"+crc+nocrypto\")))\nuint32_t foo (uint32_t a, uint8_t b) {\n return __crc32b(a, b);\n}\n\nint main() {\n return foo(54, 8);\n}\n\n$ aarch64-linux-gnu-g++ test.cc -march\u003darmv8-a -S -o - | grep crc\n\t.arch armv8-a+crc\n\tcrc32b\tw0, w0, w1\n\n$ third_party/llvm-build/Release+Asserts/bin/clang++ --target\u003daarch64-linux-gnu test.cc -march\u003darmv8-a -S -o - | grep crc\n\tcrc32b\tw0, w8, w9\n```", + "parentUuid": "f40e6fc1_47a15fa9", + "revId": "298bd480ba48b445d8c185b4a660be96256f4b4a", + "serverId": "3ce6091f-6c88-37e8-8c75-72f92ae8dfba" } ] } \ No newline at end of file