* Fixed bug in Thumb2 pop caused by me incorrectly assuming that
  ARM_SP == 13, ARM_LR == 14, and ARM_PC == 15, which is not the case
* updated CMakeLists to include building arm regression test
* added explicit casts for 64 bit visual studio 2012 build to get around
  truncation warnings from size_t conversion
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 29de601..2110feb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -182,10 +182,16 @@
 
 if (CAPSTONE_BUILD_TESTS)
     foreach (TSRC ${TEST_SOURCES})
-	STRING(REGEX REPLACE ".c$" "" TBIN ${TSRC})
-	add_executable(${TBIN} "tests/${TSRC}")
-	target_link_libraries(${TBIN} ${default-target})
+        STRING(REGEX REPLACE ".c$" "" TBIN ${TSRC})
+        add_executable(${TBIN} "tests/${TSRC}")
+        target_link_libraries(${TBIN} ${default-target})
     endforeach ()
+    if (CAPSTONE_ARM_SUPPORT)
+        set(ARM_REGRESS_TEST test_arm_regression.c)
+        STRING(REGEX REPLACE ".c$" "" ARM_REGRESS_BIN ${ARM_REGRESS_TEST})
+        add_executable(${ARM_REGRESS_BIN} "suite/arm/${ARM_REGRESS_TEST}")
+        target_link_libraries(${ARM_REGRESS_BIN} ${default-target})
+    endif()
 endif ()
 
 ## installation