[llvmlinux] aes_ctrby8_avx-x86_64.s -

Jan-Simon Moeller dl9pf at gmx.de
Thu Dec 4 18:14:28 UTC 2014


Hi all, David!

I looked into the broken avx/ni  compilation/assembly we see in 
aes_ctrby8_avx-x86_64.s

The only interesting difference I found comparing --save-temps 
is this:


build/kernel-clang> diff -Napur GCC/aes_ctrby8_avx-x86_64.s 
CLANG/aes_ctrby8_avx-x86_64.s 
--- GCC/aes_ctrby8_avx-x86_64.s 2014-12-04 19:02:35.830283666 +0100
+++ CLANG/aes_ctrby8_avx-x86_64.s       2014-12-04 18:55:28.551310990 +0100
@@ -1,14 +1,14 @@
 # 1 
"/home/dl9pf/llvmlinux/targets/x86_64/src/linux/arch/x86/crypto/aes_ctrby8_avx-
x86_64.S"
-# 1 "<built-in>"
-# 1 "<command-line>"
+# 1 "<built-in>" 1
+# 323 "<built-in>"
 # 1 "/home/dl9pf/llvmlinux/targets/x86_64/src/linux/include/linux/kconfig.h" 
1
 
 
 
 # 1 "include/generated/autoconf.h" 1
 # 5 "/home/dl9pf/llvmlinux/targets/x86_64/src/linux/include/linux/kconfig.h" 
2
-# 1 "<command-line>" 2
-# 1 
"/home/dl9pf/llvmlinux/targets/x86_64/src/linux/arch/x86/crypto/aes_ctrby8_avx-
x86_64.S"
+# 324 "<built-in>" 2
+# 1 
"/home/dl9pf/llvmlinux/targets/x86_64/src/linux/arch/x86/crypto/aes_ctrby8_avx-
x86_64.S" 2
 # 65 
"/home/dl9pf/llvmlinux/targets/x86_64/src/linux/arch/x86/crypto/aes_ctrby8_avx-
x86_64.S"
 # 1 "/home/dl9pf/llvmlinux/targets/x86_64/src/linux/include/linux/linkage.h" 
1
 
@@ -354,7 +354,7 @@ ddq_add_8:
 
 
 .macro setxdata n
- var_xdata = %xmm\n
+ var_xdata = %xmm \n
 .endm
 
 
###############################

so this seems to confuse gas ... 

- var_xdata = %xmm\n
+ var_xdata = %xmm \n


The test with that single line fixed works with plain as then.

Could the difference result from clang's expansion of the macros ?


Best,
Jan-Simon




More information about the LLVMLinux mailing list