Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: test/Transforms/InstCombine/x86-crc32-demanded.ll

Issue 7792066: [llvm] Conditionally include target intrinsics, based on --enable-target Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: cleanups Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 ; RUN: opt < %s -instcombine -S | FileCheck %s
2
3 ; crc32 with 64-bit destination zeros high 32-bit.
4 ; rdar://9467055
5
6 define i64 @test() nounwind {
7 entry:
8 ; CHECK: test
9 ; CHECK: tail call i64 @llvm.x86.sse42.crc32.64.64
10 ; CHECK-NOT: and
11 ; CHECK: ret
12 %0 = tail call i64 @llvm.x86.sse42.crc32.64.64(i64 0, i64 4) nounwind
13 %1 = and i64 %0, 4294967295
14 ret i64 %1
15 }
16
17 declare i64 @llvm.x86.sse42.crc32.64.64(i64, i64) nounwind readnone
OLDNEW
« no previous file with comments | « test/Transforms/InstCombine/vec_demanded_elts.ll ('k') | test/Transforms/ScalarRepl/2006-11-07-InvalidArrayPromote.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698