aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/flags-unsigned.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-20 21:19:07 +0000
committerDan Gohman <gohman@apple.com>2009-07-20 21:19:07 +0000
commit799a8c8a5ac704e591eff78a60135af48266724f (patch)
tree69577cb79bc2b30c8f801de5c52a374189fdb7a4 /test/Assembler/flags-unsigned.ll
parentcee787fc3c6b0e4043cebe2c16825f9d0da863a6 (diff)
downloadexternal_llvm-799a8c8a5ac704e591eff78a60135af48266724f.zip
external_llvm-799a8c8a5ac704e591eff78a60135af48266724f.tar.gz
external_llvm-799a8c8a5ac704e591eff78a60135af48266724f.tar.bz2
Assembly and Bitcode support for unsigned/signed overflow flags and
exact sdiv flags. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/flags-unsigned.ll')
-rw-r--r--test/Assembler/flags-unsigned.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Assembler/flags-unsigned.ll b/test/Assembler/flags-unsigned.ll
new file mode 100644
index 0000000..1526db0
--- /dev/null
+++ b/test/Assembler/flags-unsigned.ll
@@ -0,0 +1,18 @@
+; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+
+@addr = external global i64
+
+define i64 @add_unsigned_ce() {
+; CHECK: ret i64 unsigned add (i64 ptrtoint (i64* @addr to i64), i64 91)
+ ret i64 unsigned add (i64 ptrtoint (i64* @addr to i64), i64 91)
+}
+
+define i64 @sub_unsigned_ce() {
+; CHECK: ret i64 unsigned sub (i64 ptrtoint (i64* @addr to i64), i64 91)
+ ret i64 unsigned sub (i64 ptrtoint (i64* @addr to i64), i64 91)
+}
+
+define i64 @mul_unsigned_ce() {
+; CHECK: ret i64 unsigned mul (i64 ptrtoint (i64* @addr to i64), i64 91)
+ ret i64 unsigned mul (i64 ptrtoint (i64* @addr to i64), i64 91)
+}