asma: some hax
authorBernhard Urban <lewurm@gmail.com>
Sun, 28 Feb 2010 10:14:04 +0000 (11:14 +0100)
committerBernhard Urban <lewurm@gmail.com>
Sun, 28 Feb 2010 10:14:04 +0000 (11:14 +0100)
.gitignore
asma/asma.s

index 9ef76f3ef8a311407eb6349069c251f7468170f1..8f4fb4c4391a7942f3d81f16bd913493044069a8 100644 (file)
@@ -2,6 +2,7 @@
 *.output
 oxout.*
 *~
+*.swp
 
 #asma
 asma/asma
index 275e847b0b6f13350f1672289559e3feb91d0973..e1538b4d1c002361010a30b042100874c9dc8ceb 100644 (file)
@@ -4,6 +4,15 @@
        .type   asma, @function
 asma:
 .LFB2:
+       #movdqu $0xffffffffffffffff, %xmm1
+       pxor %xmm1, %xmm1
+
+       #speicheradresse des pointers zeigt auf 16*8 feld = 128bit
+       movdqa (%rdi), %xmm2
+
+       #pcmpgtb %xmm1, %xmm2
+
+       #movdqa %xmm2, (%rdi)
        movq    %rdi, %rax
        ret
 .LFE2: