Last active
December 31, 2015 03:29
-
-
Save kraiskil/7928187 to your computer and use it in GitHub Desktop.
avx bugs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.file "test-avx.c" | |
.text | |
.globl add | |
.align 16, 0x90 | |
.type add,@function | |
add: # @add | |
.cfi_startproc | |
# BB#0: # %entry | |
vaddpd %ymm1, %ymm0, %ymm0 | |
ret | |
.Ltmp0: | |
.size add, .Ltmp0-add | |
.cfi_endproc | |
.ident "clang version 3.4 (http://llvm.org/git/clang.git c27813a0ee224ef24671a36e8c6a6219cb20dbad) (http://llvm.org/git/llvm.git 593c23caad07bd8b4d042db897b7d9fed7b4f213)" | |
.section ".note.GNU-stack","",@progbits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ModuleID = 'test-avx.c' | |
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" | |
target triple = "x86_64-unknown-linux-gnu" | |
; Function Attrs: nounwind readnone uwtable | |
define <4 x double> @add(<4 x double> %x, <4 x double> %y) #0 { | |
entry: | |
%add = fadd <4 x double> %x, %y | |
ret <4 x double> %add | |
} | |
attributes #0 = { nounwind readnone uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } | |
!llvm.ident = !{!0} | |
!0 = metadata !{metadata !"clang version 3.4 (http://llvm.org/git/clang.git c27813a0ee224ef24671a36e8c6a6219cb20dbad) (http://llvm.org/git/llvm.git 593c23caad07bd8b4d042db897b7d9fed7b4f213)"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment