Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store <64 x i1> generates incorrect code #29963

Open
aqjune opened this issue Oct 5, 2016 · 1 comment
Open

Store <64 x i1> generates incorrect code #29963

aqjune opened this issue Oct 5, 2016 · 1 comment
Labels
bugzilla Issues migrated from bugzilla llvm:codegen

Comments

@aqjune
Copy link
Contributor

aqjune commented Oct 5, 2016

Bugzilla Link 30615
Version trunk
OS Linux
Blocks #30613
Attachments Three files (two .c files and one .ll file) that show buggy behavior.
CC @hfinkel,@aqjune,@nunoplopes,@sanjoy

Extended Description

store <64 x i1> %1, <64 x i1>* ptr generates incorrect code.

I attach the source code. I compiled these files with

clang -O2 -c -o main.o main.c
clang -O2 -c -o visitelem.o visitelem.c

llc -filetype=obj -o loadval.o loadval.ll
gcc loadval.o main.o visitelem.o -o main

./main

Without store <64 x i1> %1, <64 x i1>* @&#8203;globalvar, align 8, in loadval.ll, it prints

visitelem : 1111
visitelem : 1111
visitelem : 0
visitelem : 0

However with the store it prints

visitelem : 0
visitelem : 0
visitelem : 0
visitelem : 0

even if %ptr and @globalvar points to distinct address.

@RKSimon
Copy link
Collaborator

RKSimon commented Nov 26, 2021

mentioned in issue #30613

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla llvm:codegen
Projects
None yet
Development

No branches or pull requests

2 participants